FROM codenvy/ubuntu_jdk8
MAINTAINER wanghui
VOLUME /tmp
VOLUME /home/ruoyi/uploadPath
USER root
RUN mkdir -p /var/log
RUN mkdir -p /usr/project/
RUN echo 'Asia/Shanghai' >/etc/timezone
ADD target/ruoyi-admin.jar /usr/project/fantasyadmin.jar
RUN bash -c 'touch /usr/project/fantasyadmin.jar'
EXPOSE 16003
ENTRYPOINT ["java" ,"-jar","/usr/project/fantasyadmin.jar"]